package com.xky.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Book {
@TableId(type = IdType.AUTO)  // 指定主键生成策略
private String bookNo;
private String bookName;
private Integer bookCode;
private String bookLocation;
private String status;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") // 精确到秒，丢弃毫秒
private LocalDateTime create_time=LocalDateTime.now();
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime update_time=LocalDateTime.now();
private String bookType;
}
